<ion-view view-title="积分商城" cache-view="false" ng-init="init()" hide-back-button="false">
  <ion-nav-buttons side="right">
    <button class="button" ng-click="toHistory()" style="display: none">兑换记录</button>
  </ion-nav-buttons>
  <ion-content class="gray_back">
    <section class="g_main">
      <div class="shop-warp">
          <div class="header">
              <p class="num">{{point}}</p>
            <p>当前积分</p>
            <div style="position: absolute;    left: 10px;    top: 76px;">
              <button class="button1" ng-click="toHistory()">兑换记录</button>
            </div>
            <div style="position: absolute;    right: 10px;    top: 76px;">
              <button class="button1" ng-click="toGet()">如何赚积分</button>
            </div>
          </div>
          <div class="content">
            <div class="content-img-warp">
              <div class="content-img">

              </div>
            </div>
            <ion-content class="scroll-view" style="height:{{scorllHeight}}px"  >
              <div style="height:{{listHeight}}px">
                <!--ion-content -->
                  <div class="item item-avatar my-image-item"
                       collection-repeat="item in shopList"
                       collection-item-width="'50%'" ng-click="toDetail(item.id)">
                    <p class="title">{{item.name}}</p>
                    <p class="point"><dfn>{{item.shop_price}}</dfn>&nbsp;积分</p>
                    <p><img ng-src="{{item.thumb}}"></p>

                  </div>
                <!--/ion-content-->

              </div>
            </ion-scroll>
          </div>
          <div class="more" ng-click="doMore()">查看更多</div>
      </div>
    </section>
  </ion-content>
</ion-view>
